<?php

use Biz\service\springHomeDecActivity\LuckyCharmService;

class LuckyCharmAction extends ActionPlugin
{
    const USER_LEVEL = self::LEVEL_NOTHING;

    public function main()
    {
        $luckCharm = LuckyCharmService::getLuckCharm();

        if (empty($luckCharm)) {
            throw new \Exception("锦鲤正在来的路上，请在活动结束后查看", self::CODE_ERROR_VIEW_TOSTA);
        }

        $this->setSuccess($luckCharm);
    }
}